<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = [100,200,300,400,500,600]
        console.log(arr.join('*'))
        console.log(

            arr.map(function(item,index){
                return item * 2
            })
        )
        console.log(
            arr.filter(function(item,index){
                return item >200
            })
        )
        Array.prototype.myForEach = function (callback){
            for (var i=0;i<this.length;i++){
                callback(this[i],i)
            }
        }
        Array.prototype.mySome = function(callback){
            for (var i =0;i<this.length;i++){
                if(callback(this[i],i)){
                    return true
                }
            }
            return false
        }
    </script>
</body>
</html>